package orm.dao;

import org.junit.Test;
import orm.rzdata.dao.BaseDAO;
import orm.rzdata.dao.impl.BaseDAOImpl;
import orm.rzdata.domain.User;

import javax.jws.soap.SOAPBinding;
import java.io.Serializable;
import java.util.Date;

/**
 * @author com.ymy.hadoop
 * @date 2018/12/16 11:57
 */
public class BaseDaoImplTest {

    @Test
    public void test01(){
        BaseDAO dao = new BaseDAOImpl();

        for (int i = 0;i < 20;i++){
            User user = new User(1+i,"xx" + i,24 + i,new Date());
            Serializable id = dao.save(user);
            System.out.println("id : " + id);
        }
//        User user = new User(1,"xx",24,new Date());
//        Serializable serializable = dao.save(user);
    }
}
